package Zouye;

import java.util.Scanner;

public class Addition {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int scre = 0;
        for (int a = 1; a <= 10; a++) {
            int b = (int) (Math.random() * 100);
            int c = (int) (Math.random() * 100);
            int resuit = c + b;
            System.out.println( c + "+" + b + "=?");
            System.out.println("算吧");
            int answer = scan.nextInt();
            if (answer == resuit)
            {
                System.out.println("答对了");
                scre += 10;
            }else{
                System.out.println("答错了");
            }
        }
            System.out.println("总分为：" + scre);

}}
